﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;
using DAL;

namespace BLL
{
    public class NhanKhauBLL
    {
        //public static List<NhanKhauPublic> LoadNhanKhauBySoSHK(int SoSHK)
        //{
        //    return NhanKhauDAL.LoadNhanKhauBySoSHK(SoSHK);
        //}
        public static List<NhanKhauPublic> LoadNhanKhauByMaSHK(int MaSHK)
        {
            return NhanKhauDAL.LoadNhanKhauByMaSHK(MaSHK);
        }
        public static void InsertNhanKhau(NhanKhauPublic nk)
        {
            NhanKhauDAL.InsertNhanKhau(nk);
        }
       
        public static int LoadMaNK()
        {
            return NhanKhauDAL.LoadMaNK();
        }
        public static void UpdateKhaiTu(int MaKT, int MaNK)
        {
            // chèn MaCT vào row có MaNK ????
            NhanKhauDAL.UpdateKhaiTu(MaKT, MaNK);
        }
        public static void UpdateMaSHK(int MaSHK, int MaNK)
        {
            NhanKhauDAL.UpdateMaSHK(MaSHK, MaNK);
        }
        public static NhanKhauPublic LoadNhanKhauByMaNK(int MaNK)
        {
            return NhanKhauDAL.LoadNhanKhauByMaNK(MaNK);
        }
        public static NhanKhauPublic LoadNhanKhauByCMND(string CMND)
        {
            return NhanKhauDAL.LoadNhanKhauByCMND(CMND);
        }
        public static int CountNhanKhau()
        {
            return NhanKhauDAL.CountNhanKhau();
        }
        public static int CountNhanKhauNam()
        {
            return NhanKhauDAL.CountNhanKhauNam();
        }
        public static int CountNhanKhauNu()
        {
            return NhanKhauDAL.CountNhanKhauNu();
        }
        public static void UpdateQuanHe(int MaNK,byte MaQH)
        {
            NhanKhauDAL.UpdateQuanHe(MaNK, MaQH);
        }
        public static List<NhanKhauPublic> LoadNhanKhauByMaSHKCha(int MaSHK)
        {
            return NhanKhauDAL.LoadNhanKhauByMaSHKCha(MaSHK);
        }
        public static List<NhanKhauPublic> LoadNhanKhauByMaSHKMe(int MaSHK)
        {
            return NhanKhauDAL.LoadNhanKhauByMaSHKMe(MaSHK);
        }
    }
}
